3.1.16 \(\int \frac {1}{x^2} \, dx\)

Optimal. Leaf size=5 \[ -\frac {1}{x} \]

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 5, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {30} \begin {gather*} -\frac {1}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^(-2),x]

[Out]

-x^(-1)

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rubi steps

\begin {align*} \int \frac {1}{x^2} \, dx &=-\frac {1}{x}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 5, normalized size = 1.00 \begin {gather*} -\frac {1}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^(-2),x]

[Out]

-x^(-1)

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x^2} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[x^(-2),x]

[Out]

IntegrateAlgebraic[x^(-2), x]

________________________________________________________________________________________

fricas [A]  time = 1.79, size = 5, normalized size = 1.00 \begin {gather*} -\frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^2,x, algorithm="fricas")

[Out]

-1/x

________________________________________________________________________________________

giac [A]  time = 0.85, size = 5, normalized size = 1.00 \begin {gather*} -\frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^2,x, algorithm="giac")

[Out]

-1/x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 6, normalized size = 1.20 \begin {gather*} -\frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x^2,x)

[Out]

-1/x

________________________________________________________________________________________

maxima [A]  time = 0.43, size = 5, normalized size = 1.00 \begin {gather*} -\frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^2,x, algorithm="maxima")

[Out]

-1/x

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 5, normalized size = 1.00 \begin {gather*} -\frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x^2,x)

[Out]

-1/x

________________________________________________________________________________________

sympy [A]  time = 0.06, size = 3, normalized size = 0.60 \begin {gather*} - \frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x**2,x)

[Out]

-1/x

________________________________________________________________________________________